/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved. distributed with this file and
 * available online at
 */
package com.lap.auth.application.region.command;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

@Data
@Schema(description = "更新区域命令")
public class UpdateRegionCmd {

  @Schema(description = "父ID")
  private Integer pid;

  @NotBlank(message = "{region.name.required}")
  @Length(max = 256, message = "{region.name.max.length}")
  @Schema(description = "区域名称")
  private String name;

  @NotNull(message = "{region.sortOrder.required}")
  @Range(min = 0, max = 2147483647, message = "{region.sortOrder.range}")
  @Schema(description = "区域排序")
  private Integer orders;
}
